<HTML>
<HEAD>
<meta NAME="author" CONTENT="Judit Vasko-Szedlar">
<link REL="stylesheet" TYPE="text/css" HREF="../../../marvinmanuals.css" TITLE="Style">

<TITLE>MarvinSpace demo</TITLE>
<SCRIPT type="text/javascript" LANGUAGE="JavaScript">
function selectedDrawType(i)
{
  if(document.DrawType.group1[i].checked == true)
  {
    document.MSpaceApplet.setProperty( "MacroMolecule.DrawType", document.DrawType.group1[i].value );
  }
}

function selectedColorType(i)
{
  if(document.ColorType.group1[i].checked == true)
  {
    document.MSpaceApplet.setProperty( "MacroMolecule.ColorType", document.ColorType.group1[i].value );
  }
}

function showBondOrder()
{
  document.MSpaceApplet.setProperty( "MacroMolecule.DisplayBondOrder", document.DrawType.bondorder.checked==1 );
}
</SCRIPT>
</HEAD>

<BODY>

<H1>MarvinSpace</H1>

<table cellspacing="0" cellpadding="5" border="0" align="center">
<tr><td>
<script language="JavaScript" src="../../../marvin.js"></script>
<script language="JavaScript">
<!--
mspace_name="MSpaceApplet";
mspace_begin(mspace_name,"../../..",400,400);
mspace_param("progressbar","true");
mspace_param("selectionpanel","false");
mspace_param("molecule","http://www.chemaxon.com/marvinspace/data/1AO7.pdb");
mspace_end();
//-->
</script>
</td>
<td>
Draw types<br>
<form action="" name="DrawType">
<input type="radio" name="group1" value="Wire" checked="true" onClick="selectedDrawType(0)"> Wire<br>
<input type="radio" name="group1" value="Ball" onClick="selectedDrawType(1)"> Ball<br>
<input type="radio" name="group1" value="Stick" onClick="selectedDrawType(2)"> Stick<br>
<input type="radio" name="group1" value="BallAndWire" onClick="selectedDrawType(3)"> Ball and Wire <br>
<input type="radio" name="group1" value="BallAndStick" onClick="selectedDrawType(4)"> Ball and Stick<br>
<input type="radio" name="group1" value="Spacefill" onClick="selectedDrawType(5)"> Spacefill<br>
<input type="checkbox" name="bondorder" onClick="showBondOrder()">Display bond order<br>
</form>
<br>

Color types<br>
<form action="" name="ColorType">
<input type="radio" name="group1" value="Constant" onClick="selectedColorType(0)"> Constant<br>
<input type="radio" name="group1" value="CPK" checked="true" onClick="selectedColorType(1)"> CPK<br>
<input type="radio" name="group1" value="Residue" onClick="selectedColorType(2)"> Residue<br>
<input type="radio" name="group1" value="Chain" onClick="selectedColorType(3)"> Chain<br>
<input type="radio" name="group1" value="SecondaryStructure" onClick="selectedColorType(4)"> Secondary structure<br>
<input type="radio" name="group1" value="B-factor" onClick="selectedColorType(5)"> B-factor<br>
<input type="radio" name="group1" value="Rainbow" onClick="selectedColorType(6)"> Rainbow<br>
</form>
</td>
</tr>
</table>

<blockquote>
    <p>MarvinSpace is capable of displaying small molecules, proteins, molecular surfaces and many more,
and usually they have different display properties. The available properties are arranged hierarchicaly
to be able to distinguish the range of the property.</p>
    <p>
    The list of the available properties, their possible and default values can be found
    <a href="../../../help/developer/space-par.html">here</a>.</p>
    <p>In the previous example we used a small molecule as input data but in the current example there
is a protein. The properties found in the previous example will not work here, at least they have to be
modified a bit.</p>
    <p>To modify the draw type and color type of proteins (or nucleic acid polymers) we used
        <pre>
            document.MSpaceApplet.setProperty( "MacroMolecule.DrawType", document.DrawType.group1[i].value );
            document.MSpaceApplet.setProperty( "MacroMolecule.ColorType", document.ColorType.group1[i].value );
        </pre>
    </p>
    <p>There are some special properties that does not have any qualifiers, for example
    <code>Quality</code>, <code>Depthcue</code>, etc.
    </p>

</blockquote>

<center><div class="lenia">&nbsp;</div></center>
<p>
<center>
<font size="-2" face="helvetica">

Copyright &copy; 2004-2010
<a href="http://www.chemaxon.com">ChemAxon Ltd.</a>
&nbsp;&nbsp;&nbsp;All rights reserved.
</font>
</center>

</BODY>
</HTML>


